﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="AddRole.aspx.cs" Inherits="StoragePeriod.Web.SysManage.AddRole" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
<style type="text/css">
    .layout{ background:url(../images/images_59.jpg) no-repeat;}
    .left-cloumn{display:none;}
    .right-cloumn{width:944px;}
    #sms_title_li_0{ background:url(../images/images_55.jpg) no-repeat;}
    .Left_Search{width:190px;padding-left:10px; height:30px;border-top:1px solid #ccc;}
    </style>
    <script type="text/javascript">
     
        $(function () {
            $("#add-role").click(function () {
  
                $("#dialog-form").dialog('open');
                return false;
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainLeft" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">

<div class="sms_title">
    <ul>
        <li><a href="../SysManage/AddPrivliege.aspx">添加权限码</a></li>
        <li><a href="../SysManage/AddRole.aspx" style="color: #f90;">添加角色</a></li>
        <li><a href="../SysManage/SysRolePrivilegeManage.aspx">角色权限管理</a></li>
        <li><a href="../SysManage/PersonnelRoleManage.aspx">人员角色分配</a></li>
        <li><a href="../SysManage/RawTypeManage.aspx">原料分类指派</a></li>
        <li><a href="#">计算公式维护</a></li>
    </ul>
</div>

   <div class="sms_main">
        <div class="ui-widget">
            <asp:GridView ID="gvRoleView" runat="server" CssClass="sp-common-table ui-widget ui-widget-content"
                OnPreRender="gvRoleView_PreRender" AllowPaging="True" 
                DataKeyNames="角色编码" onrowcancelingedit="gvRoleView_RowCancelingEdit" 
                onrowdeleting="gvRoleView_RowDeleting" 
                onrowediting="gvRoleView_RowEditing" 
                onrowupdating="gvRoleView_RowUpdating"
                onpageindexchanging="gvRoleprivilegeView_PageIndexChanging">
                <Columns>
                    <asp:CommandField ShowEditButton="True" />
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
                <HeaderStyle CssClass="ui-widget-header" />
            </asp:GridView>
        </div>
        <button class="ui-button" id="add-role">添加新角色</button>
    </div>
    <div class="die">
        <div class="sp-dialog-box" id="dialog-form" title="添加角色">
            
            <table class="sp-input-table " border="0" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        角色编码：
                    </td>
                    <td>
                        <asp:TextBox runat="server" class="text ui-widget-content ui-corner-all" ID="tbRoleCode" />
                    </td>
                </tr>
                <tr>
                    <td>
                        角色名称：
                    </td>
                    <td>
                        <asp:TextBox runat="server" class="text ui-widget-content ui-corner-all" ID="tbRoleName" />
                    </td>
                </tr>
                <tr>
                    <td>
                        角色描述：
                    </td>
                    <td>
                        <asp:TextBox runat="server" class="text ui-widget-content ui-corner-all" ID="tbRoleDesc" />
                    </td>
                </tr>
            </table>
            <asp:Button Text="提交" runat="server" CssClass="die" ID="btPost" OnClick="btPost_Click" />
        </div>
    </div>
    <div class="sms_foot">
        <img src="../images/images_58.jpg" width="944" height="8" class="float_left" />
    </div>

</asp:Content>
